package org.minbox.framework.logging.admin.ui;

import java.util.List;

import static java.util.Arrays.asList;

/**
 * Logging Admin Ui Factory Bean {@link LoggingAdminUiFactoryBean}
 *
 * @author 恒宇少年
 * @see LoggingAdminUiEndpoint
 */
public class LoggingAdminUiFactoryBean {
    /**
     * page title
     */
    private String title = "ApiBoot Logging Admin";
    /**
     * logo
     */
    private String brand = "<img src=\"assets/img/apiboot-white.png\">";
    /**
     * notification filter enable
     */
    private boolean notificationFilterEnabled;
    /**
     * remember me enabled
     */
    private boolean rememberMeEnabled;
    /**
     * page routes
     */
    private List<String> routes = asList(
            "/about/**",
            "/services/**",
            "/logs/**",
            "/wallboard/**"
    );

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public boolean isNotificationFilterEnabled() {
        return notificationFilterEnabled;
    }

    public void setNotificationFilterEnabled(boolean notificationFilterEnabled) {
        this.notificationFilterEnabled = notificationFilterEnabled;
    }

    public boolean isRememberMeEnabled() {
        return rememberMeEnabled;
    }

    public void setRememberMeEnabled(boolean rememberMeEnabled) {
        this.rememberMeEnabled = rememberMeEnabled;
    }

    public List<String> getRoutes() {
        return routes;
    }

    public void setRoutes(List<String> routes) {
        this.routes = routes;
    }
}
